﻿using AutoMapper;
using MvcSolution.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcSolution.Services.Admin.AutoMapper
{
    public class AdminSettings 
    {
        public static  AdminSettings Instance { get; set; }
        public  void Init()
        {
            Mapper.Initialize(ad =>
            {
                ad.CreateMap<User, UserDto>();
                ad.CreateMap<Role, UserRoleDto>();
            });
        }
        public  AdminSettings()
        {
            Instance = new AdminSettings();
        }
    }
}
